package com.tpp.threat_perception_platform.dao;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.HostAppVul;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author yokui
* @description 针对表【host_app_vul】的数据库操作Mapper
* @createDate 2025-06-16 01:18:13
* @Entity com.tpp.threat_perception_platform.pojo.HostAppVul
*/
public interface HostAppVulMapper {

    int deleteByPrimaryKey(Long id);

    int insert(HostAppVul record);

    int insertSelective(HostAppVul record);

    HostAppVul selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HostAppVul record);

    int updateByPrimaryKey(HostAppVul record);

    void deleteByMacAddress(String macAddress);

    List<HostAppVul> findAll(@Param("param") MyParam param);
    //模糊搜索相关
    List<HostAppVul> findByMacAddress(@Param("param") MyParam param);
    List<HostAppVul> findByHostName(@Param("param") MyParam param);
    List<HostAppVul> findByAppVulName(@Param("param") MyParam param);
    List<HostAppVul> findByAppVulId(@Param("param") MyParam param);

    List<String> selectAbnormalHosts();

    int selectCount();
}
